package com.peanut.boot.service.PulsUser.imp;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.peanut.boot.entiity.MybatisPulsUser;
import com.peanut.boot.mapper.mybatisPulsUser.MybatisPlusUserMapper;
import com.peanut.boot.service.PulsUser.IMybatisPulsUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @className: com.peanut.boot.service.mabatisPulsUser-> MabatisPulsUserServiceImp
 * @description: 这个类是做做什么得吖，小朋友？
 * @author: chenhs
 * @createDate: 2021-12-02 22:44
 * @version: 1.0
 */
//继承 iservice 的原因是 iservice中已经实现了基本的crud，实现类同时继承
// ServiceImpl<MybatisPulsUserMapper,MybatisPulsUser>  <mapper接口，实体类>
@Service(value="userService")
public class MybatisPulsUserServiceImp extends ServiceImpl<MybatisPlusUserMapper,MybatisPulsUser> implements IMybatisPulsUserService {

    @Autowired
    MybatisPlusUserMapper userMapper;

    public Long addUser(MybatisPulsUser user) {
//        Long aLong = userMapper.addUser(user);
        Long aLong = userMapper.addUserNote(user);
        return aLong;
    }
}
